package cn.ainit.base.modify;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller 
@RequestMapping("/modify")
public class ModifyController {
    private  ModifyService modifyService;
    @Resource
	public void setModifyService(ModifyService modifyService ) {
		this.modifyService = modifyService;
	}
    
    
    @RequestMapping("/update")
    @ResponseBody
    public String getModifyPwd(ModifyParm mp,HttpSession session) throws Exception{
    	mp.setSession(session);
        String  msg =modifyService.getModifyInfo(mp);
    	return msg;
    }
    
    
	
	
	
}
